home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group97b.txt / 000024_icon-group-sender _Mon Jul 14 11:24:30 1997.msg < prev    next >
Internet Message Format  |  2000-09-20  |  4KB

  1. Received: from kingfisher.CS.Arizona.EDU by cheltenham.cs.arizona.edu; Tue, 15 Jul 1997 12:06:50 MST
  2. Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
  3.     id AA03066; Tue, 15 Jul 1997 12:06:50 -0700
  4. Date: Mon, 14 Jul 1997 11:24:30 -0700 (PDT)
  5. From: Tom Mitchell <mitch@roll.csd.sgi.com>
  6. To: icon-group@cs.arizona.edu, Chris Tenaglia <cdt@post.its.mcw.edu>
  7. Subject: Re: 4th of July Sample 2
  8. In-Reply-To: <Pine.SOL.3.96.970704075127.21094B-100000@post.its.mcw.edu>
  9. Message-Id: <Pine.SGI.3.94.970714110508.27235C-100000@roll.csd.sgi.com>
  10. Mime-Version: 1.0
  11. Content-Type: TEXT/PLAIN; charset=US-ASCII
  12. Errors-To: icon-group-errors@cs.arizona.edu
  13. Status: RO
  14.  
  15. On Fri, 4 Jul 1997, Chris Tenaglia wrote:
  16.  
  17. > Date: Fri, 4 Jul 1997 08:02:35 -0500 (CDT)
  18. > From: Chris Tenaglia <cdt@post.its.mcw.edu>
  19. > To: icon-group@cs.arizona.edu
  20. > Subject: 4th of July Sample 2
  21. > And for our second offering I post a binary file editor.
  22. > I've used it on files up to 1MB. It views the file in
  23. > terms of 256 byte sectors. It also assumes some kind of
  24. > vt terminal emulation. This is getting close to system
  25. > programming and the code gets thick doing binhex conversions
  26. > and tracking screen locations. But I pity someone trying to
  27. > do this in perl, c, or shell script. I suppose there is
  28. > something you could buy to do this, but I didn't know of
  29. > any so I wrote this. It took less time than the cost justification
  30. > paperwork to buy a piece of software. 
  31.  
  32. Nifty code!
  33.  
  34. A number of my friends are lisp fans.  One is using lisp as a
  35. prototype scripting language for network diagnostics.  I have
  36. also seen makefiles for a 68010 unix kernel with generated
  37. assembler code produced by emacs in a #!emacs type shell 
  38. batch script.
  39.  
  40. Check out emacs
  41.  
  42. The 24 MB buffer limits of gnu-emacs are not a problem with unix
  43. tools like split and dd.
  44.  
  45.  
  46.   function hexlify-buffer
  47.   and
  48.   function dehexlify-buffer
  49.  
  50. ====
  51. dehexlify-buffer
  52.   Function: Convert a hexl format buffer to binary.
  53. dehexlify-command
  54.   Variable: The command to use to unhexlify a buffer.
  55. hexl-maybe-dehexlify-buffer
  56.   Function: Convert a hexl format buffer to binary.
  57. hexlify-buffer
  58.   Function: Convert a binary buffer to hexl format.
  59. hexlify-command
  60.   Variable: The command to use to hexlify a buffer.
  61.  
  62. hexlify-buffer: an interactive compiled Lisp function.
  63. (hexlify-buffer)
  64.  
  65. Convert a binary buffer to hexl format.
  66. =======================================
  67.  
  68. Here is my .sig in hexl format.
  69.  
  70. 00000000: 2020 0a20 2054 6f6d 204d 6974 6368 656c    .  Tom Mitchel
  71. 00000010: 6c20 2d20 6d69 7463 6840 7367 692e 636f  l - mitch@sgi.co
  72. 00000020: 6d2c 206d 6974 6368 4072 656c 6179 2e63  m, mitch@relay.c
  73. 00000030: 7364 2e73 6769 2e63 6f6d 2c20 6d69 7463  sd.sgi.com, mitc
  74. 00000040: 6840 6163 6d2e 6f72 670a 2020 2020 2020  h@acm.org.      
  75. 00000050: 2020 5275 6c65 7320 6f66 2074 6875 6d62    Rules of thumb
  76. 00000060: 2061 7265 206c 696b 6520 6861 6d6d 6572   are like hammer
  77. 00000070: 732c 206e 6169 6c73 2061 6e64 2074 6875  s, nails and thu
  78. 00000080: 6d62 732e 0a20 2020 2020 2020 2049 6620  mbs..        If 
  79. 00000090: 796f 7520 646f 206e 6f74 206c 6f6f 6b20  you do not look 
  80. 000000a0: 6174 2077 6861 7420 796f 7572 2061 7265  at what your are
  81. 000000b0: 2064 6f69 6e67 2069 7420 6361 6e20 6875   doing it can hu
  82. 000000c0: 7274 2e0a 2020 2020 2020 2020 2121 2121  rt..        !!!!
  83. 000000d0: 2120 204f 7563 6820 2121 2121 2121 0a0a  !  Ouch !!!!!!..
  84. 000000e0: 0a                                       .
  85.  
  86. ....
  87.   Tom Mitchell - mitch@sgi.com, mitch@relay.csd.sgi.com, mitch@acm.org
  88.     Rules of thumb are like hammers, nails and thumbs.
  89.     If you do not look at what your are doing it can hurt.
  90.     !!!!!  Ouch !!!!!!
  91.  
  92.